package com.qianfeng.goods_7006.repository;

import com.qianfeng.goods_7006.dto.GoodsDto;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsRepository extends ElasticsearchRepository<GoodsDto,Integer> {
    List<GoodsDto> queryAllByName(String name);
    List<GoodsDto> queryAllByTaste(String taste);

    List<GoodsDto> queryAllByType(Integer tid);
    List<GoodsDto> queryAllByPriceIsLessThan(Double price);


}
